 <template>
  <div class="about-wrapper">
    <!-- <p class="about-txt" v-html="info.content"></p> -->
    <p class="about-txt"></p>

    <div class="img-wrap">
      <img src="@/assets/images/ad_img_01.jpg">
    </div>
  </div>
</template>

  <script type="text/ecmascript-6">
// 引用API文件
import http from "../utils/http.js";
import constant from "@/utils/constant.js";
import $ from "jquery";
export default {
  name: "about",
  data() {
    return {
    };
  },
  props: {
    info: {}
  },
  components: {},
  created() {},
  mounted(){
    $(".about-txt").html(this.info.content);
    $(".about-txt img").each(function(index, item) {
        let src = $(item).attr("src");
        $(item).css('max-width', '100%');
        if (!src.startsWith("http://") && !src.startsWith("https://")) {
          $(item).attr("src", constant.api_url + src);
        }
      });
  }
};
</script>

 <style scoped lang="scss">
.about-wrapper {
  background-color: $c-white-light;
  padding: 0.21rem 0.2rem 0.42rem 0.2rem;

  .about-txt {
    font-size: 0.28rem;
    color: $c-mainC;
    // height: 2.7rem;
    // line-height: 0.36rem;
    text-align: justify;
  }

  .img-wrap {
    width: 100%;
    img {
      width: 100%;
    }
  }
}
</style>
